package com.basketball.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Date;

@Controller
public class CommonContoller {
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
    }
    @RequestMapping("/demo3")
    public ModelAndView login(){
        ModelAndView mv =  new ModelAndView("hello");
        mv.addObject("name","Maliang");
        return mv;
    }
}
